<template>
  <div class="">
    <h6>这是子组件b</h6>
    <h5>从组件a过来的数据：{{ froma }}</h5>
  </div>
</template>

<script>
export default {
  data() {
    return {
      froma: "",
    };
  },
  mounted() {
    this.$bus.$on("aa", (val) => {
      this.froma = val;
    });
  },
  methods: {},
  components: {},
};
</script>

<style lang="scss"></style>
